package com.edu.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;


/**
 * <p>
 *
 * </p>
 *
 * @author jixuewei
 * @since 2023-01-12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "Student对象", description = "")
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String code;

    private String name;

    private String password;

    @TableField(value = "class")
    private String clazz;

    private String phone;

    private Integer deptId;

    private String deptName;

    private String photo;

    @ApiModelProperty("账号状态，0在校有效，1已离校")
    private Byte status;

    private String sex;

    private String major;

    @Setter@Getter
    private String grade;


    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    @ApiModelProperty("简历1地址")
//    @TableField(value = "'resume1'")
    private String resume;

    @TableField(exist = false)
    private Role role;

}
